﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HomeAutomation
{
    class X10Device : Device
    {
        private readonly string _house;
        private readonly byte _unit;


        public X10Device(string house, byte unit)
        {
            this._house = house;
            this._unit = unit;
        }


        public string house()
        {
            return _house;
        }

        public byte unit()
        {
            return _unit;
        }

        public override string ToString()
        {
            return "X10Device: " + _house + " " + _unit;
        }
    }
}
